<header class="navbar navbar-static-top bs-docs-nav" id="top">
  <div class="container">
    <div class="navbar-header">

      <a href="{:url('index/index')}" class="navbar-brand" id="logo">
<img src="__PUBLIC_IMG__/logoblack.png" />
</a>
    </div>
    <nav id="bs-navbar" class="collapse navbar-collapse">
      <ul class="nav navbar-nav">
        {volist name="nav" id="vo"}
{eq name="vo.pid" value="1"}
        <li id="{$vo.alias}" {if condition="true eq getnavactive(getnavlink($vo['link'],$vo['sid']))"}class="active"{/if}>
          <a href="{$vo.link|getnavlink=$vo.sid}" target="{$vo.target}" title="{$vo.alias}">{$vo.name}</a>
        </li>
              {/eq}
{/volist}
  
       </ul>
      <ul class="nav navbar-nav navbar-right" style="margin-right:0px;">
      
      {if condition="session('member_info') neq null"}
      
      <li>

<div class="es-list-circleimg">
<img src="{$userinfo.userhead|getheadurl}">
</div>

</li>
    <li ><a style="    padding: 0px;    margin-right: 20px;" href="{:url('user/index')}"  target="_blank">
    <dt>{$userinfo['nickname']}</dt>
    <dd style="padding:5px 0px;">{:getusergrade($userinfo['grades'],$userinfo['id'])}</dd>
    </a></li>
      <li><a href="javascript:;" data-url="{:url('user/logout')}" class="logoutajax" target="_blank">注销</a></li>
      
      {else/}
       <li><a href="{:url('user/register')}"  target="_blank">注册</a></li>
        <li><a href="{:url('user/login')}"  target="_blank">登录</a></li>
      {/if}
      
      
        
        
        
      </ul>
    </nav>
  </div>
</header>